/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jturbofile.net;

/**
 *
 * @author Rolf
 */
public class CloseHandler implements Handler {

    public boolean handlePacket(Packet p, PeerThread pt) {
        if( p.getType() == Packet.PacketType.CLOSE ) {
            pt.close();
            return true;
        }
        
        return false;
    }

}
